// src/stores/staffStore.js
import { defineStore } from 'pinia'

export const useStaffStore = defineStore('staff', {
  state: () => ({
    staffList: []
  }),
  actions: {
    async fetchStaffWithCertifications() {
      // 模拟 API 请求（你可以替换成真实接口）
      const res = await fetch('/api/staff-certifications')
      this.staffList = await res.json()
    }
  }
})